package horncomb.bpm.process.entity;

import javax.persistence.Column;
import javax.persistence.Entity;

import horncomb.bpm.process.core.entity.ProcessInstanceEntity;

/**
 * @author Daniel
 */
@Entity
public class DefaultProcessInstanceEntity extends DefaultNestedTokenEntity
		implements ProcessInstanceEntity {
	private static final long serialVersionUID = -5499387567800542310L;
	private String processDefinitionId;

	public String getType() {
		return "PI";
	}

	/**
	 * @return the processDefinitionId
	 */
	@Column(name = "PROC_DEF_")
	public String getProcessDefinitionId() {
		return processDefinitionId;
	}

	/**
	 * @param processDefinitionId
	 *            the processDefinitionId to set
	 */
	public void setProcessDefinitionId(String processDefinitionId) {
		this.processDefinitionId = processDefinitionId;
	}

	/**
	 * {@inheritDoc}
	 */
	public String getTokenId() {
		return this.getId();
	}

	/**
	 * {@inheritDoc}
	 */
	public void setTokenId(String tokenId) {
		// do nothing
	}
}
